import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.io.File;
import java.util.List;

public class Demo3 {
    public static void main(String[] args) throws Exception {
        SAXReader reader = new SAXReader();
        Document document = reader.read(new File("src/Ch02/Shili/Sl1/book.xml"));

        Element rootElement = document.getRootElement();
        Element brand = (Element) rootElement.elements("Brand").get(0);

        Element item = brand.element("Item");
        Element title = item.element("title");
        System.out.println(title.getText());

    }
}
